/******************************************************************************/
/* Files to Include                                                           */
/******************************************************************************/
#include "system.h"

/* Device header file */
#if defined(__dsPIC33E__)
	#include <p33Exxxx.h>
#elif defined(__dsPIC33F__)
	#include <p33Fxxxx.h>
#endif


/******************************************************************************/
/* Configuration Bits                                                         */
/*                                                                            */
/* This is not all available configuration bits for all dsPIC devices.        */
/* Refer to the dsPIC device specific .h file in the compiler                 */
/* support\dsPIC33F\h directory for complete options specific to the device   */
/* selected.  For additional information about what hardware configurations   */
/* mean in terms of device operation, refer to the device datasheet           */
/* 'Special Features' chapter.                                                */
/*                                                                            */
/******************************************************************************/

/* TODO Fill in your configuration bits here.  The general style is below:    */

/*These bits specify fundamental device operation, such as the oscillator mode,
 * watchdog timer, programming mode and code protection.
 * This does not produce executable code */

/* Oscillator Source Selection: Selects internal oscillator with PLL and no switching */
_FOSCSEL(FNOSC_FRCPLL  & IESO_OFF)

/* Oscillator Configuration: 
 *      Disables clock switching and Fail-Safe Clock Monitor
 *      OSC2 is general purpose digital I/O pin
 *      and Primary Oscillator disabled
 */

/*      FCKSM_CSECME         Both Clock switching and Fail-safe Clock Monitor are enabled
**      FCKSM_CSECMD         Clock switching is enabled,Fail-safe Clock Monitor is disabled
**      FCKSM_CSDCMD         Both Clock switching and Fail-safe Clock Monitor are disabled
*/

_FOSC(FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMD_NONE)


/* Turns off JTAG
 * and Select ICD Communication Channel to Communicate on PGEC2 and PGED2*/
_FICD(JTAGEN_OFF & ICS_PGD2)
